
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace jzlib.asp.net.Controls
{
    public  class CustomColumnComparer:IComparer<CustomColumnSetting>
    {
        int IComparer<CustomColumnSetting>.Compare(CustomColumnSetting c1, CustomColumnSetting c2)
        {
            if (c1.Priority > c2.Priority)
            {
                return -1;
            }
            else if (c2.Priority == c1.Priority)
            {
                return 0;
            }
            else
            {
                return 1;
            }
        }
    }
}
